/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_List_Map_string_int_ } from '../models/BaseResponse_List_Map_string_int_';
import type { BaseResponse_List_Question_ } from '../models/BaseResponse_List_Question_';
import type { BaseResponse_long_ } from '../models/BaseResponse_long_';
import type { BaseResponse_Map_string_int_ } from '../models/BaseResponse_Map_string_int_';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class EchartsControllerService {

    /**
     * 统计题目总数
     * @returns BaseResponse_long_ OK
     * @throws ApiError
     */
    public static questionCountUsingGet(): CancelablePromise<BaseResponse_long_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/api/echarts/question/count',
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * 统计热门题目
     * @returns BaseResponse_List_Question_ OK
     * @throws ApiError
     */
    public static getHotQuestionUsingGet(): CancelablePromise<BaseResponse_List_Question_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/api/echarts/question/hot',
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * 统计提交总数
     * @returns BaseResponse_long_ OK
     * @throws ApiError
     */
    public static questionSubmitCountUsingGet(): CancelablePromise<BaseResponse_long_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/api/echarts/question/submit/count',
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * 统计提交趋势
     * @returns BaseResponse_List_Map_string_int_ OK
     * @throws ApiError
     */
    public static questionSubmitTrendUsingGet(): CancelablePromise<BaseResponse_List_Map_string_int_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/api/echarts/question/submit/trend',
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * 统计用户总数
     * @returns BaseResponse_long_ OK
     * @throws ApiError
     */
    public static userCountUsingGet(): CancelablePromise<BaseResponse_long_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/api/echarts/user/count',
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * 统计用户结构
     * @returns BaseResponse_Map_string_int_ OK
     * @throws ApiError
     */
    public static userStructureUsingGet(): CancelablePromise<BaseResponse_Map_string_int_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/api/echarts/user/structure',
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * 统计今日新增用户
     * @returns BaseResponse_long_ OK
     * @throws ApiError
     */
    public static userTodayAddCountUsingGet(): CancelablePromise<BaseResponse_long_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/api/echarts/user/today/add/count',
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

}
